package com.source.lightfowl.barcodeMachineGrantAndRecovery.service;

import com.source.lightfowl.VO.BarcodeMachineGrantVO;
import com.source.lightfowl.barcodeMachineGrantAndRecovery.pojo.BarcodeMachineGrant;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * @Author: 谢春泳
 * @Description:
 * @Date:
 */
public interface BarcodeMachineGrantService {
    //3.3查
    List<BarcodeMachineGrantVO> findAll();
    //3.2查 分页
    Page<BarcodeMachineGrant> findAllPage(int page, int pageNum);
    //3.3查找根据脚标机id查找
    List<BarcodeMachineGrant> findByBarcodeMachineId(Integer id);
    //3.4
    BarcodeMachineGrantVO findById(Integer id);

    //1.增 或者改
    void save(BarcodeMachineGrant barcodeMachineGrant);

    //2.1删
    void deleteById(Integer id);
    //2.2批量删
    void deleteBatch(String ids);
}
